﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace C4F.DevKit.Bluetooth
{
    namespace FileTransferProfile
    {

        /// <summary>
        /// EventArgs class to be used when an SendFolder operation completes.
        /// </summary>
        public class SendFolderCompletedEventArgs : AsyncCompletedEventArgs
        {
            #region Private Members

            /// <summary>
            /// The location of the folder on local device that is being pushed 
            /// on remote device.
            /// </summary>
            private string locFolderPath;

            #endregion

            #region Public Properties

            /// <summary>
            /// Gets the location of the folder on local device that is being 
            /// pushed on remote device.
            /// </summary>
            public string LocalFolderPath
            {
                get
                { return this.locFolderPath; }
            }


            #endregion

            #region Constructor

            /// <summary>
            /// Initializes the SendFolderCompletedEventArgs object.
            /// </summary>
            /// <param name="localFolderPath">The location of the folder on 
            /// local device that is being pushed on remote device.</param>        
            /// <param name="error">An error that occurred during the 
            /// asynchronous operation.</param>
            /// <param name="cancelled">A value indicating whether the 
            /// asynchronous operation was cancelled.</param>
            /// <param name="userState">The user-supplied state object supplied 
            /// when the asynchronous operation was requested.</param>


            public SendFolderCompletedEventArgs(string localFolderPath,
                                                Exception error,
                                                bool cancelled,
                                                object userState)
                : base(error, cancelled, userState)
            {


                this.locFolderPath = localFolderPath;

            }
            #endregion
        }
    }
}
